
<%@tag import="com.mymail.entity.Receiver"%><%@ tag language="java" pageEncoding="UTF-8"%>
<%@ tag import="java.util.*"%>
<%@ attribute name="receivers" required="true" type="java.util.ArrayList"%>
<%
Iterator it=receivers.iterator();
String str="<div style=\"float:left\"><span>收件人:</span></div><div style=\"margin-left:45px\">";
String str1=null;
while(it.hasNext()){
	Receiver re=(Receiver)it.next();
	if(re.getSort()==Receiver.NORMAL){
		str+=re.getName();
		str+="，";
	}
	if(re.getSort()==Receiver.CS){
		if(str1==null)str1="<div style=\"float:left\"><span>抄&nbsp;&nbsp;送:</span></div><div style=\"margin-left:45px\">";
		str1+=re.getName()+"，";
	}
}
out.print("<p>"+str.substring(0,str.length()-1)+"</div></p>");
if(str1!=null)out.print("<p>"+str1.substring(0,str1.length()-1)+"</div></p>");
%>